package com.sr.service.book;

import java.util.List;

import com.sr.dao.book.BookDaoImp;
import com.sr.entity.book.BookList;

public class BookService {
	BookDaoImp bdi=new BookDaoImp();
	//查询所有图书验证
	public List<BookList> findAll(){
		List<BookList> list=bdi.findAll();
		return list;
		
	}
	//分页验证
	public List<BookList> findByPage(int pageNum,int pageSize){
		List<BookList> list=bdi.findByPage(pageNum, pageSize);
		return list;
		
	}
	//页数验证
	public int findCountPage(){
		int count=bdi.findCountPage();
		return count;
		
	}
	//通过类别查询图书验证
	public BookList findByBookCategory(String category){
		BookList bl=bdi.findByBookCategory(category);
		return bl;
		
	}
	//模糊查询验证
	public List<BookList> search(String bookname){
		List<BookList> list=bdi.search(bookname);
		return list;
		
	}


}
